package cn.ulc.socket;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.AnnotationBeanNameGenerator;

public class UniqueNameGenerator extends AnnotationBeanNameGenerator {

        @Override
        public String generateBeanName(BeanDefinition beanDefinition,BeanDefinitionRegistry registry){
                String beanName = beanDefinition.getBeanClassName();
                return beanName;
        }

}
